package handlers

import (
	"MessageSendService/app/common/enum/channalType"
	"MessageSendService/app/common/models"
	"context"
	"fmt"
)

type EmailHandler struct {
}

func NewEmailHandler() EmailHandler {
	return EmailHandler{}
}

func (e EmailHandler) DoHandler(ctx context.Context, taskInfo models.TaskInfo) error {

	if taskInfo.SendChannel == channalType.Email {
		fmt.Println("发送邮件消息：", taskInfo)
	} else {
		fmt.Println("消息类型匹配错误")
	}
	return nil
}
